package net.xinqushi.design.COR.impl;

import net.xinqushi.design.COR.Handler;

public class ConcreteHandler extends Handler {
    @Override
    public void doHandler() {

        if(null != getNextHandler() ){
            System.out.println("others task");
            getNextHandler().doHandler();
        } else {
            System.out.println("my task");
        }
    }
}
